<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Incrementally parse data into buffer</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.mailparse-msg-parse-file.html">« mailparse_msg_parse_file</a></li>
      <li style="float: right;"><a href="function.mailparse-rfc822-parse-addresses.html">mailparse_rfc822_parse_addresses »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.mailparse.html">Mailparse 函数</a></li>
    <li>Incrementally parse data into buffer</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.mailparse-msg-parse" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mailparse_msg_parse</h1>
  <p class="verinfo">(PECL mailparse &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">mailparse_msg_parse</span> &mdash; <span class="dc-title">Incrementally parse data into buffer</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.mailparse-msg-parse-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mailparse_msg_parse</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$mimemail</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Incrementally parse data into the supplied mime mail resource.
  </p>
  <p class="para">
   This function allow you to stream portions of a file at a time, rather
   than read and parse the whole thing.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mailparse-msg-parse-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">mimemail</code></dt>

     <dd>

      <p class="para">
       A valid <code class="literal">MIME</code> resource.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">data</code></dt>

     <dd>

      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <p class="para">
        The final chunk of <code class="parameter">data</code> is supposed to end with a newline
        (<code class="literal">CRLF</code>); otherwise the last line of the message will not be parsed.
       </p>
      </p></blockquote>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mailparse-msg-parse-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>true</code></strong>， 或者在失败时返回 <strong><code>false</code></strong>。
  </p>
 </div>

</div></div></div></body></html>